const {DataTypes} =require("sequelize")
const sequelize = require('../db')
const User = sequelize.define(
    "user",
    {
        name: {
            type: DataTypes.STRING,
            allowNull: false,
            unique: true
        },
        password: {
            type: DataTypes.STRING,
            allowNull: false,
            defaultValue: ''
        },
        number: {
          type: DataTypes.STRING
        },
        title: {
          type: DataTypes.STRING
        },
        description: {
          type: DataTypes.STRING
        },
        age: {
          type: DataTypes.STRING
        },
        sex: {
          type: DataTypes.STRING
        },
        handleWarningNumber: {
          type: DataTypes.STRING
        },
        number: {
          type: DataTypes.STRING
        },
        number: {
          type: DataTypes.STRING
        },
    },
    {
      freezeTableName: false,
      timestamps: false,
    })
module.exports = User
